﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="AssignDuty.aspx.cs" Inherits="SwenAssigment.AssignDuty" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style6 {
            width: 458px;
        }
        .auto-style7 {
            width: 422px;
        }
        .auto-style8 {
            width: 399px;
        }
        .auto-style9 {
            width: 148px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Assign Duty</h1>
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table style="width:100%;">
                    <tr>
                        <td class="auto-style9">&nbsp;</td>
                        <td>Date:
                            <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" ValidationGroup="aa"></asp:TextBox>
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox1" ErrorMessage="*Required" ForeColor="Red" ValidationGroup="aa"></asp:RequiredFieldValidator>
                            &nbsp;<asp:Calendar ID="Calendar1" runat="server" OnDayRender="Calendar1_DayRender1" OnSelectionChanged="Calendar1_SelectionChanged1"></asp:Calendar>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style9">General Maintenance:</td>
                        <td>Staff Available<br />
                            <asp:ListBox ID="ListBox1" runat="server" DataSourceID="SqlDataSource1" DataTextField="Staff Name" DataValueField="Staff_ID" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged"></asp:ListBox>
                            &nbsp;<asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Assign" />
                            &gt;&gt;&gt;
                            <asp:ListBox ID="ListBox2" runat="server"></asp:ListBox>
                            &nbsp;<asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="&lt;&lt;Remove" />
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [GeneralView]"></asp:SqlDataSource>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style9">Room Maintenance:</td>
                        <td>Staff Available<br />
                            <asp:ListBox ID="ListBox3" runat="server" DataSourceID="SqlDataSource2" DataTextField="Staff Name" DataValueField="Staff_ID"></asp:ListBox>
                            &nbsp;<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Assign" />
                            &gt;&gt;&gt;
                            <asp:ListBox ID="ListBox4" runat="server"></asp:ListBox>
                            &nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="&lt;&lt;Remove" />
                            <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [RoomView]"></asp:SqlDataSource>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style9">Estate Maintenance:</td>
                        <td>Staff Available<br />
                            <asp:ListBox ID="ListBox5" runat="server" DataSourceID="SqlDataSource3" DataTextField="Staff Name" DataValueField="Staff_ID"></asp:ListBox>
                            &nbsp;<asp:Button ID="Button6" runat="server" OnClick="Button6_Click" Text="Assign" />
                            &gt;&gt;&gt;
                            <asp:ListBox ID="ListBox6" runat="server"></asp:ListBox>
                            &nbsp;<asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="&lt;&lt;Remove" />
                            <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [EstateView]"></asp:SqlDataSource>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style9">Security Maintenance:</td>
                        <td>Staff Available<br />
                            <asp:ListBox ID="ListBox7" runat="server" DataSourceID="SqlDataSource4" DataTextField="Staff Name" DataValueField="Staff_ID"></asp:ListBox>
                            &nbsp;<asp:Button ID="Button8" runat="server" OnClick="Button8_Click" Text="Assign" />
                            &gt;&gt;&gt;
                            <asp:ListBox ID="ListBox8" runat="server"></asp:ListBox>
                            &nbsp;<asp:Button ID="Button7" runat="server" OnClick="Button7_Click" Text="&lt;&lt;Remove" />
                            <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [SecurityView]"></asp:SqlDataSource>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style9">&nbsp;</td>
                        <td>
                            <asp:Button ID="Button9" runat="server" OnClick="Button9_Click" Text="Create" ValidationGroup="aa" />
                            &nbsp;<asp:Label ID="Label1" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </ContentTemplate>
        
        </asp:UpdatePanel>
    </div>
</asp:Content>
